using System;

namespace Aima.Core.util
{

    public class Randomizer : IRandomizer
    {
        private readonly Random _r;

        public Randomizer(Random r)
        {
            _r = r;
        }

        public double NextDouble()
        {
            return _r.NextDouble();
        }
    }
}